﻿<%@ Page Language="C#" MasterPageFile="~/TapuKadastro.master" AutoEventWireup="True"
    Inherits="TapuKadastroWeb.IlKatsayiGiris" Title="İl Katsayı Girişi" CodeBehind="IlKatsayiGiris.aspx.cs" %>

<%@ Register Src="~/UserControls/Tarih.ascx" TagName="Tarih" TagPrefix="uc2" %>
<%@ Register Src="~/UserControls/Sayi.ascx" TagName="Sayi" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH" runat="server">
    <h3 class="title">
        İl Katsayı Girişi
    </h3>
    <asp:MultiView ID="mv" runat="server" ActiveViewIndex="0">
        <asp:View ID="vListe" runat="server">
            <table class="form">
                <tr>
                    <td class="label">
                        Başlama Tarihi
                    </td>
                    <td>
                        <uc2:Tarih ID="ucBaslamaTarihiARA" runat="server" AllowEmpty="true" />
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Bitiş Tarihi
                    </td>
                    <td>
                        <uc2:Tarih ID="ucBitisTarihiARA" runat="server" AllowEmpty="true" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnListele" runat="server" Text="Listele" OnClick="btnListele_Click" />
<%--                        <asp:Button ID="btnYeniKayit" runat="server" Text="Yeni Kayıt" CausesValidation="False"
                            OnClick="btnYeniKayit_Click" />--%>
                            &nbsp;
                        <asp:Button ID="btnGecerlileriListele" runat="server" Text="Geçerli Katsayılar" OnClick="btnGecerlileriListele_Click" />
<%--                        <asp:Button ID="btnYeniKayit" runat="server" Text="Yeni Kayıt" CausesValidation="False"
                            OnClick="btnYeniKayit_Click" />--%>
                    </td>
              </tr>
            </table>
            <asp:GridView ID="grdIlKatsayiListe" runat="server" AutoGenerateColumns="False" Width="100%"
                CssClass="grid" AllowPaging="False" DataKeyNames="IlKaysayiID" PageSize="20" EmptyDataText="Aranılan kriterlere uygun sonuç bulunamadı."
                OnPageIndexChanging="grdIlKatsayiListe_PageIndexChanging" OnRowCommand="grdIlKatsayiListe_RowCommand"
                OnRowDataBound="grdIlKatsayiListe_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="IlKaysayiID" HeaderText="İl Katsayı ID" Visible="false" />
                    <asp:BoundField DataField="IlID" HeaderText="İl ID" Visible="false" />
                    <asp:BoundField DataField="IlAdi" HeaderText="İli" />
                    <asp:TemplateField HeaderText="Katsayı" >
                        <ItemTemplate>
                            <%--<uc3:Sayi DataType="Double" ID="ucKatsayiRow" runat="server"/>--%>
                            <asp:TextBox ID="ucKatsayiRow" runat="server" MaxLength="5"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="BaslamaTarihi" HeaderText="Başlama Tarihi" DataFormatString="{0:dd.MM.yyyy}" />
                    <asp:BoundField DataField="BitisTarihi" HeaderText="Bitiş Tarihi" DataFormatString="{0:dd.MM.yyyy}" />
<%--                    <asp:ButtonField ControlStyle-CssClass="grd_Guncelle" CommandName="duzenle" Text="Güncelle" />
                    <asp:ButtonField ControlStyle-CssClass="grd_Sil onay" CommandName="sil" Text="Sil" />--%>

                </Columns>
                <RowStyle CssClass="even" />
                <AlternatingRowStyle CssClass="odd" />
                <EditRowStyle CssClass="odd" />
                <EmptyDataRowStyle CssClass="empty" />
            </asp:GridView>
            <table class="form">
                <tr>
                    <td class="label">Başlama Tarihi</td>
                    <td colspan="2" align="center">
                        <uc2:Tarih ID="ucYeniBaslamaTarihi" runat="server" AllowEmpty="false" />
                        &nbsp;
                        <asp:Button ID="btnTumunuGuncelle" runat="server" Text="Tümünü Güncelle" 
                            CausesValidation="False" onclick="btnTumunuGuncelle_Click"/>
                    </td>
                </tr>
            </table>
        </asp:View>
<%--        <asp:View ID="vKayit" runat="server">
            <table class="form">
                <tr>
                    <td class="label">
                        İli
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlIlID" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="ddlIlID_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="rfvIlID" runat="server" ControlToValidate="ddlIlID"
                            Text="İl Seçiniz" InitialValue="-1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Katsayı
                    </td>
                    <td>
                        <uc3:Sayi DataType="Double" ID="ucKatsayi" runat="server" AllowEmpty="False" /> &nbsp;(Ör: 1,05)
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Başlama Tarihi
                    </td>
                    <td>
                        <uc2:Tarih ID="ucBaslamaTarihi" runat="server" AllowEmpty="False" />
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Bitiş Tarihi
                    </td>
                    <td>
                        <uc2:Tarih ID="ucBitisTarihi" runat="server" AllowEmpty="True" />
                    </td>
                </tr>
                <tr>
                    <td class="buton" colspan="2">
                        <asp:Button ID="btnGeri" runat="server" CssClass="btn_back" Text="Geri" CausesValidation="False"
                            OnClick="btnGeri_Click" />
                        <asp:Button ID="btnKaydet" runat="server" Text="Kaydet" OnClick="btnKaydet_Click" />
                    </td>
                </tr>
            </table>
        </asp:View>--%>
    </asp:MultiView>
</asp:Content>
